<?php
class LeaveModel extends Orm_Base{
    public $table = 'leaves';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'sid' => array('type' => "int(11) unsigned",'comment' => '关联老人ID'),
        'is_pay' => array('type' => "tinyint(1)",'comment' => '是否结算(1.已结算、2.未结算)'),
        'leaved_reason' => array('type' => "varchar(200)",'comment' => '离院原因'),
        'department' => array('type' => "int(10)",'comment' => '部门编码'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
    );
    public $pk = 'id';
} 
?>
